﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>ZIMMERLI 数据快速管理中心</title>
    <link href="Content/css/login.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="out_content">
            <div class="out_head" style="width: 100%; padding: 10px 0 25px 0">
                <div style="font-size: 18px">ZIMMERLI 在线商城</div>
                <div>数据快速管理中心</div>
            </div>
            <div style="width: 40%; float: left">
                <div class="rows">
                    <input type="text" class="ctrl" placeholder="账号" id="txtAcc" />
                </div>
                <div class="rows">
                    <input type="password" class="ctrl" placeholder="密码" id="txtPwd" />
                </div>
                <div style="padding: 30px 0">
                    <a id="submit" class="btn" href="javascript:void(0);">登录</a>
                </div>
            </div>
            <div style="width: 22%; color: #989898; transform: rotate(-90deg); float: left">---&nbsp&nbsp OR &nbsp&nbsp---</div>
            <div style="width: 30%; float: left">
                <div style="color: grey">需要回到Magento管理中心</div>
                <div style="padding: 20px 0 20px 0; overflow: hidden;">
                    <a class="btn" href="https://www.zimmerli.cn/admin">回到商城管理后台</a>
                </div>
                <div style="width: 100%;">合作伙伴快速入口</div>
                <div>
                    <a href="www.beats.net.cn" target="_blank">
                        <img style="width: 40px; margin-top: 10px" src="http://img.cdn.be-xxx.com/beats-site/images/logo.png" /></a>
                </div>

            </div>
        </div>
        <div id="fail" class="alertFail">账号或者密码错误，请再试一次</div>
        <div id="success" class="alertSuccess">登录成功，请稍后</div>
    </form>
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
    <script src="Content/js/Apps.js"></script>
    <script>
        $(function () {
            var acc = $('#txtAcc'),
                pwd = $('#txtPwd');

            $("#submit").on('click', login);

            function login() {
                var tmp = 0;
                if (acc.val() == "") tmp++;
                else if (pwd.val() == "") tmp++;
                if (tmp > 0)
                    alert('请填写用户名和密码');
                else
                    user.login(acc.val(), pwd.val());
            }
        });
    </script>
</body>
</html>
